/**
 * @Author: wangjian
 * 656876071@qq.com
 * @Date: 2024-09-20 16:06:09
 * @LastEditTime: 2024-09-20 16:27:37
 * @FilePath: src/core/api/sys/UserInfoApi.ts
 * @Description:
 */
import r from '@/core/utils/request'
const baseUrl = '/sys/user/info'
export default ()=>{
    return {
        // @GetMapping("get-menu-tree")
        getMenuTree: (params?: any) => {
            return r.get(baseUrl + '/get-menu-tree')
        },
        // @GetMapping("get-vue-routes")
        getVueRoutes: (params?: any) => {
            return r.get(baseUrl + '/get-vue-routes')
        },
        
    }
}

export interface VueRouteObj{
    path : string;
    name : string;
    component : string;
    redirect? : string;
    meta? : string;
}